#region Using References

using Beaker.OpenCube.Resources;
using GalaSoft.MvvmLight.Messaging;

#endregion

namespace Beaker.OpenCube.WorldViewer.Messages
{
	/// <summary>
	/// Sent when the texture pack needs to change
	/// </summary>
	public sealed class ChangeResourcePackMessage
		: MessageBase
	{
		private readonly IResourcePack _newResourcePack;

		public ChangeResourcePackMessage( IResourcePack newResource )
		{
			_newResourcePack = newResource;
		}

		/// <summary>
		/// Gets the texture pack to change to.
		/// </summary>
		/// <value>
		/// The texture pack to change to.
		/// </value>
		public IResourcePack ResourcePackToChangeTo
		{
			get { return _newResourcePack; }
		}
	}
}